package com.njym.java.security.app.mapper;

import com.njym.java.security.app.entity.FamilyPhoto;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-27 16:52:49
 */
public interface FamilyPhotoMapper extends Mapper<FamilyPhoto> {

    List<FamilyPhoto> selectLastWeek(@Param("familyId") int familyId);
    List<FamilyPhoto> selectLastMonth(@Param("familyId") int familyId);
    List<FamilyPhoto> selectMonthAgo(@Param("familyId") int familyId);

    void deletePhotoById(@Param("id") int id);
}
